<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="../../common/assets_header.jsp"/>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<script>
jQuery(document).ready(function() {    
	
	
	
});

 /* function refresh(id){
	 //window.opener.location.href = window.opener.location.href; 
	 
	 alert("llll"+id);
	 window.returnValue = id;  
	 window.close(); 
	 
	
 } */
function back(){
	$("#menu_form").attr("action","<%=request.getContextPath()%>/module/menu/list");
	$("#menu_form").submit();
	/* window.returnValue = "nochange"; 
	 window.close(); */
}



</script>

</head>
<body>

	
	
		
		
		
		
		<!-- content -->	
		<div class="page-content">
			<div class="page-header">
							<h1>
						<c:if test="${moduleMenu.moduleMenuId==null}">新增菜单</c:if>
							<c:if test="${moduleMenu.moduleMenuId!=null}">编辑菜单</c:if>
								<small>
									<i class="icon-double-angle-right"></i>
									
								</small>
							</h1>
							
					
				</div>
				<div class="row">
					<c:if test="${success}">
						<div class="alert alert-block alert-success">
									<button class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
									<strong><spring:message code="success"></spring:message>!</strong> <spring:message code="save success"></spring:message>！
								</div>
					</c:if>
					
					<c:if test="${success==false}">
						<div class="alert alert-danger">
							<button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
							<strong>
								<i class="icon-remove"></i>
								<strong><spring:message code="failure"></spring:message>!</strong> ${message}
							</strong>
						</div>
					</c:if>
					<div class="col-xs-12">
					<form id="menu_form" action="<c:if test="${moduleMenu.moduleMenuId==null}">add</c:if><c:if test="${moduleMenu.moduleMenuId!=null}">update</c:if>" method="post" class="form-horizontal">
						<input type="hidden" name="sorting_column_order" id="sorting_column_order" value="${sorting_column_order }"/>
						<input type="hidden" name="sorting_asc_desc"  id="sorting_asc_desc" value="${sorting_asc_desc}"/>
						<input type="hidden" name="searchValue"  value="${searchValue}"/>
						<input type="hidden" name="id" value="${moduleMenu.moduleMenuId}"></input>
						<input type="hidden" name="token" value="${token}"></input>
						<input type="hidden" name="moduleInfoId" value="${moduleInfoId}">
						<input type="hidden" name="moduleMenuId" value="${moduleMenuId}">
						<input type="hidden" name="parentId" value="${parentId}"></input>
						<input type="hidden" name="moduleInfoId" value="${moduleMenu.moduleInfoId}"></input>
						<input type="hidden" name="isLeaf" value="${moduleMenu.isLeaf}"></input>

						
							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">菜单名称：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="menuName" value="${moduleMenu.menuName }" class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
							


						
							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">菜单标题：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="menuTitle" value="${moduleMenu.menuTitle}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">排序号：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="sortNumber" value="${moduleMenu.sortNumber}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
							
							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">图标样本：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="iconCls" value="${moduleMenu.iconCls}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
							
							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">国际化：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="nameKey" value="${moduleMenu.nameKey}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
							
							
							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">菜单路径：</label>

								<div class="controls">

									<input type="text" maxlength="150" name="menuPath" value="${moduleMenu.menuPath}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>


						
							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">菜单描述：</label>

								<div class="controls">

										<input type="text" maxlength="20" name="menuRemark" value="${moduleMenu.menuRemark}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
						
						
						<div class="form-actions center">
						<button type="submit" class="btn btn-xs btn-primary"><spring:message
													code="btn.common.save"></spring:message></button>
									

										<button type="button" class="btn btn-xs btn-primary" onclick="back();" class="btn"><spring:message
													code="btn.common.back"></spring:message></button>

						 </div>
						
						
					
							</form>
						</div>
			</div>
			<!-- BEGIN PAGE CONTAINER-->


			
		</div>
		<!-- content end -->


		
		


</body>


